from lib.config.index import sensor_config

config = sensor_config.get_sensor("onboard_led")
# print(config)
t = config["type"]
pin = config["pin"]

led = None

if t == "ws2812":
    from lib.board.led import board_ws2812

    led = board_ws2812.LED(pin)

if t == "led":
    from lib.board.led import board_led

    led = board_led.LED(pin)
